package com.jxdinfo.hussar.cloud.module.example.lift.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 升降机实时数据表(LiftData)DTO类
 * @author zhangkai
 * @since 2023-06-14 15:10:58
 */
@ApiModel(description = "升降机实时数据表DTO")
@Data
public class LiftDataDto  {

    private static final long serialVersionUID = 1L;

    /**
    * 升降机id，lift.id
    */
    @ApiModelProperty(value = "升降机id，lift.id")
    private String liftId;
    /**
    * 升降机名称，lift.lift_name
    */
    @ApiModelProperty(value = "升降机名称，lift.lift_name")
    private String liftName;
    /**
    * 数据状态，0正常，1预警，2报警
    */
    @ApiModelProperty(value = "数据状态，0正常，1预警，2报警")
    private Integer dataStatus;
    /**
    * 检测类型：1载重，2运行速度，3高度，4X轴倾斜角度，5Y轴倾斜角度，6风速，7运载人数，8楼层
    */
    @ApiModelProperty(value = "检测类型：1载重，2运行速度，3高度，4X轴倾斜角度，5Y轴倾斜角度，6风速，7运载人数，8楼层")
    private Integer dataType;
    /**
    * 测量值
    */
    @ApiModelProperty(value = "测量值")
    private Double measureValue;
    /**
    * 预警值
    */
    @ApiModelProperty(value = "预警值")
    private String warnValue;
    /**
    * 报警值
    */
    @ApiModelProperty(value = "报警值")
    private String errorValue;
    /**
    * 数据采集时间
    */
    @ApiModelProperty(value = "数据采集时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date collectionTime;
    /**
     * 报警数据id，lift_data_alarm.id
     */
    @ApiModelProperty(value = "报警数据id，lift_data_alarm.id")
    private String dataAlarmId;
    /**
     * 项目编号
     */
    @ApiModelProperty(value = "项目编号")
    private String tyProjectCode;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date tyCreateTime;
    /**
     * 创建人id
     */
    @ApiModelProperty(value = "创建人id")
    private String tyCreateUserid;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String tyCreateUserName;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date tyLastUpdateTime;
    /**
     * 更新人id
     */
    @ApiModelProperty(value = "更新人id")
    private String tyLastUpdateUserid;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String tyLastUpdateUserName;



}